﻿using CompanyCMS.App_Code;
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CompanyCMS.Admin
{
    public partial class editbrand : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            if (CommonBLL.AddBrand(txName.Text, txdetail.Text, Convert.ToInt32(txorder.Text)))
            {
                lblmsg.Text = "添加成功";
                lblmsg.Visible = true;
                lblmsg.ForeColor = System.Drawing.Color.Green;
            }
            else
            {
                lblmsg.Text = "添加失败";
                lblmsg.Visible = true;
                lblmsg.ForeColor = System.Drawing.Color.Red;
            }
        }

        protected void btnCancle_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/admin/brandmanage.aspx"); 
        }
    }
}